<div class="form-group sms-template-1 data-item">
    <div class="col-sm-9 col-xs-12 col-md-offset-2">
        <div class="input-group col-sm-9" style="margin: 0px;padding-right: 10px;float: left;">
        	<span class="input-group-addon" >名称</span>
			<input type="text" name="hcname[]" class="form-control" value="{$data['hcname']}" />
 		</div>           
            <!--<input type="text" name="data_temp[]" class="form-control valid" value="{$data['data_temp']}">-->
        <div class="input-group form-group col-sm-3" style="margin: 0px;padding-right: 10px;float: left;">
        	<span class="input-group-addon" >时长</span>
            <input type="text" name="howlong[]" class="form-control valid" value="{$data['howlong']}">
        	<span class="input-group-addon" >天</span>
        </div>
        <div class="input-group form-group col-sm-9" style="margin: 0px;padding-right: 0;float: left;">
        	<span class="input-group-addon" >￥</span>
            <input type="text" name="hcprice[]" class="form-control valid" value="{$data['hcprice']}">
            <span class="input-group-addon btn btn-default data-item-delete"><i class="fa fa-remove"></i> 删除</span>
        </div>
        
    </div>
</div>
<script type="text/javascript">
	$(document).on('click', '.data-item-delete', function () {
        $(this).closest('.data-item').remove();
  });
</script>